package com.shunlin.paopaoku.game;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;

//音效类

public class GameSound {
    public static Sound makeSound(String soundName) { //制作音效
        return Gdx.audio.newSound(Gdx.files.internal(soundName)); //调用游戏引擎中的API
    }

    public static Music makeMusic(String musicName) {
        return Gdx.audio.newMusic(Gdx.files.internal(musicName));
    }
}
